package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.AdministrativeMattersEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Hankaicheng
 * @email 3131408121@qq.com
 * @date 2022-08-29 10:09:16
 */
@Mapper
public interface AdministrativeMattersDao extends BaseMapper<AdministrativeMattersEntity> {
    /**
     * 查询总条数
     * @author Hankaicheng
     * @email 3131408121@qq.com
     * @date 2022-08-29 10:09:16
     * @Description 查询分页数据
     */

    long findPage(@Param("params") Map<String, Object> params);

    /**
     * 查询分页数据
     *
     * @author Hankaicheng
     * @email 3131408121@qq.com
     * @date 2022-08-29 10:09:16
     * @Description 查询分页数据
     */
    List<AdministrativeMattersEntity> findRecords(IPage<AdministrativeMattersEntity> page, @Param("params") Map<String, Object> params);

    /**
     * 政务网事项状态统计
     * @return
     */
    List<Map<String,Integer>> matterStateTj();

    List<Integer> matterDateTj(@Param("params") List params);

    /**
     * 投资项目立项统计
     * @return
     */
    List<Map<String,Integer>> lxtj();

    /**
     * 社会组织相关业务统计
     * @return
     */
    List<Map<String,Integer>> shtj();

    /**
     * 市场主体登记业务统计
     * @return
     */
    List<Map<String,Integer>> sctj();


}
